package com.bajiao.entity.app;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @Description: app版本更新记录表
 * @Author: FanJq
 * @Date:   2024-10-10-12-17
 * @Version: V1.0
 */
@Data
@TableName("app_version")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="app_version对象", description="app版本更新记录表")
public class Version {

	/**id*/
	@TableId(type = IdType.UUID)
    @ApiModelProperty(value = "id")
	private String id;
	/**版本名称*/
	@Excel(name = "版本名称", width = 15)
    @ApiModelProperty(value = "版本名称")
	private String name;
	/**版本号*/
	@Excel(name = "版本号", width = 15)
    @ApiModelProperty(value = "版本号")
	private Integer version;
	/**本次产品更新内容*/
	@Excel(name = "本次产品更新内容", width = 15)
    @ApiModelProperty(value = "本次产品更新内容")
	private String content;
	/**是否强制更新*/
	@Excel(name = "是否强制更新", width = 15)
    @ApiModelProperty(value = "是否强制更新")
	private Integer musted;
	/**更新地址*/
	@Excel(name = "更新地址", width = 15)
    @ApiModelProperty(value = "更新地址")
	private String url;
	/**APP类型 1：安卓   2：ios*/
	@Excel(name = "APP类型 1：安卓   2：ios", width = 15)
    @ApiModelProperty(value = "APP类型 1：安卓   2：ios")
	private Integer type;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private java.util.Date createTime;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
	private String createBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private java.util.Date updateTime;
	/**编辑人*/
	@Excel(name = "编辑人", width = 15)
    @ApiModelProperty(value = "编辑人")
	private String updateBy;
}
